---
id: 660f487dc0c8fa38084f9754
title: Step 83
challengeType: 1
dashedName: step-83
---

# --description--

Since you have moved the comparison into the `while` condition, you can remove your entire `if` statement.

# --hints--

You should no longer have an `if` statement.

```js
assert.notMatch(code, /if\s*\(\s*done\)/);
```

You should no longer set `continueLoop` to `false`.

```js
assert.lengthOf(code.match(/continueLoop\s*=\s*false/g), 1);
```

# --seed--

## --seed-contents--

```js
const character = "#";
const count = 8;
const rows = [];

function padRow(rowNumber, rowCount) {
  return " ".repeat(rowCount - rowNumber) + character.repeat(2 * rowNumber - 1) + " ".repeat(rowCount - rowNumber);
}

// TODO: use a different type of loop
/*for (let i = 1; i <= count; i++) {
  rows.push(padRow(i, count));
}*/

let continueLoop = false;
let done = 0;

--fcc-editable-region--
while (done !== count) {
  done++;
  rows.push(padRow(done, count));
if (done === count) {
    continueLoop = false;
  } 
}
--fcc-editable-region--

let result = ""

for (const row of rows) {
  result = result + "\n" + row;
}

console.log(result);
```
